<%@ page import="database.*"%>
<%
try{
String proff = request.getParameter("prof");
	String stdd = request.getParameter("stud");
	//out.print(proff+" --- "+ stdd);/*
        DBCon db = new DBCon();
        db.updateEnrolmentKey(stdd, proff);
        response.sendRedirect("../admin/index.jsp");
	}
catch(Exception e)
{
    response.sendRedirect("../connectionFailed.jsp?"+e);
}

%>
